package net.dgi.common.match.impl;

import java.util.Queue;

/**
 * Viva IntelliJ IDEA.
 * User: Deian Date: Sep 30, 2010 Time: 10:25:34 PM
 */
public class MatchContext {
    protected Queue<MatchResult> outgoingQueue;
    protected Queue<MatchRequest> incomingQueue;
    protected Queue<MatchAssignment> executionQueue;
    protected boolean hasShutdownSignal = false;

    public Queue<MatchResult> getOutgoingQueue() {
        return outgoingQueue;
    }

    public Queue<MatchRequest> getIncomingQueue() {
        return incomingQueue;
    }

    public Queue<MatchAssignment> getExecutionQueue() {
        return executionQueue;
    }

    public boolean hasShutdownSignal() {
        return hasShutdownSignal;
    }

    public void shutdown() {
        hasShutdownSignal = true;
        notifyAll();
    }
}
